package com.lemon.core.mybatis.annotation;

import com.lemon.core.mybatis.enums.ConditionType;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author pan
 * @since 2019-09-03
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface QueryField {

    String field() default "";

    ConditionType conditionType() default ConditionType.EQ;

    boolean ignore() default false;

}
